#include "IDataWriter.h"
#include <fstream>
#include <map>

class TextWriter: public IDataWriter
{
public:
	TextWriter(char* path):f(path){}
	~TextWriter()
	{
		f.close();
	}
	virtual void putChar(char c)
	{
		f<<c;
	}
	virtual bool isEnd()
	{
		return f.eof();
	}

	virtual void writeMap(std::map<char, int> table )
	{
		
	}
private:
	std::ofstream f;
};
